﻿using System;
using System.Threading;

namespace ForLoop
{
    class Program
    {
        static void Main(string[] args)
        {
            int k = 0;

            while (k < 10)
            {
                Console.WriteLine(k + 1);
                //k = k + 1;
                k++;
            }

            Console.WriteLine("---------------------------");

            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine(i + 1);
            }

            Console.WriteLine("---------------------------");

            for (int i = 0; i < 24; i++)
            {
                for (int j = 0; j < 60; j++)
                {
                    //Console.WriteLine("{0} : {1}", i, j);
                    //Thread.Sleep(100);
                }
            }

            Console.WriteLine("---------------------------");

            for (int i = 0; i < 10; i++)
            {
                for (int j = 0; j <= i; j++)
                {
                    Console.Write(j + " ");
                }

                Console.WriteLine();
            }
        }
    }
}
